package com.njym.java.security.app.mapper;

import com.njym.java.security.app.entity.CourseCatalogue;
import com.njym.java.security.app.entity.CourseCatalogueVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author Mr.AG
 * @email 463540703@qq.com
 * @date 2019-11-07 16:47:09
 */
public interface CourseCatalogueMapper extends Mapper<CourseCatalogue> {

	List<CourseCatalogue> getCourse(@Param("userId") Integer userId);

//	List<CourseCatalogue> selectCorses(@Param("classId") Integer classId);

	List<CourseCatalogue> getFreeCourses();

	List<CourseCatalogueVo> getCourses();

	List<CourseCatalogue> getTenCourses();

	List<CourseCatalogueVo> getClassCount();

	List<CourseCatalogueVo> getTenCourse();

	Integer getCourseId(@Param("courseName") String courseName);

	List<CourseCatalogue> getAinengLife_free(@Param("classifyName") String classifyName);

	List<CourseCatalogue> getAinengLife_others(@Param("classifyName") String classifyName);

	List<CourseCatalogue> getZhangJin_recommend();

	List<CourseCatalogue> getFamilyEdu_free(@Param("classifyName") String classifyName);

	List<CourseCatalogue> getFamilyEdu_others(@Param("classifyName") String classifyName);

    void addCollects(@Param("couId") Integer couId);

	void addLikes(@Param("couId") Integer couId);
}
